package edu.ciee.tz.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="truck_table")
public class Truck {

	@Id
	private String chepai;
	private String truck_type;
	private int size;
	private String gouru_time;
	
	@ManyToOne(targetEntity=Laiyuan.class)
	@JoinColumn(name="laiyuan")
	private Laiyuan laiyuan;
	
	public String getChepai() {
		return chepai;
	}
	public void setChepai(String chepai) {
		this.chepai = chepai;
	}
	public String getTruck_type() {
		return truck_type;
	}
	public void setTruck_type(String truck_type) {
		this.truck_type = truck_type;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public String getGouru_time() {
		return gouru_time;
	}
	public void setGouru_time(String gouru_time) {
		this.gouru_time = gouru_time;
	}
	public Laiyuan getLaiyuan() {
		return laiyuan;
	}
	public void setLaiyuan(Laiyuan laiyuan) {
		this.laiyuan = laiyuan;
	}
	
}
